package com.huluobo.lib_http

import retrofit2.Retrofit

/**
 *  Created by LC on 2025/1/11.
 */
object NetworkFactory {
    lateinit var retrofit: Retrofit

    fun factory(type: HttpType): Retrofit {
        when (type) {
            HttpType.NONE -> {
                retrofit = NoneRetrofitImpl().createRetrofit()
            }

            HttpType.TOKEN -> {
                retrofit = TokenRetrofitImpl().createRetrofit()
            }

            HttpType.SIGN -> {}
        }
        return retrofit
    }
}